package commons.base.webservice;

import javax.jws.WebService;
import javax.xml.ws.Endpoint;

@WebService
public class HelloWebService {

	public String hello(String message){
		System.err.println("=====" + message);
		return "hello world";
	}
	
	public static void main(String[] args) {
		// staic 和 final方法默认不会发布
		Endpoint.publish("http://10.130.140.60/hello", new HelloWebService());
	}
}
